package com.xingkeduo.dto;

import com.xingkeduo.pojo.enums.CommentStar;
import com.xingkeduo.pojo.enums.ServiceType;
import lombok.Data;
import org.apache.commons.lang.StringUtils;

import java.time.LocalDateTime;


@Data
public class QueryByUserIdResponseDto {


    //评论id
    private Long id;

    //用户昵称
    private String userNickName;

    //用户头像
    private String userImg;

    //评价时间
    private LocalDateTime CreatedTime;

    //服务类型 1剪发 2刘海 3高级
    private ServiceType serviceType;

    //评价内容（已过滤
    private String comment;

    //订单号
    private String orderNo;




    //服务评分
    private CommentStar commentStar;

    //手艺人名称
    private String adminName;

    //服务类型Id
    private String serviceTypeId;

    //服务类型名称
    private String serviceTypeName;


    /**
     * 图片列表
     */
    private String[] pics;

    public void covert(String picIds){
        if(StringUtils.isNotEmpty(picIds)){
            this.pics = picIds.split(",");
        }
    }

}
